import { Component } from '@angular/core';

declare var form: any;

@Component({
    templateUrl: './sprite.directory.html'
})
export class SpriteDirectoryComponent {
    fs: any = null;
    ffs: any = null;
    constructor() {
        // 注册表单
        this.fs = new form.FormSimpleService('gismapstylesprite', {
            orderObject: { id: 0 },
            keyField: 'id',
            randomFields: ['id'],
        });
        this.fs.loadData(true);
        this.ffs = new form.FileService();
    }

    getSpriteUploadUrl() {
        return this.ffs.getSpriteUploadUrl(this.fs.er.id);
    }
}
